package com.h3bpm.web.organization.dao.impl;

import com.h3bpm.web.common.utils.SqlUtil;
import com.h3bpm.web.organization.dao.UserDao;
import data.DataRow;
import data.DataTable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @wjq
 * @date2019/12/6
 */
@Repository
public class UserDaoImpl implements UserDao {

    @Autowired
    private JdbcTemplate primaryJdbcTemplate;

    @Override
    public List<DataRow> getUserList() {

        try {
            String sql="select * From dbo_user";

            DataTable table = SqlUtil.doQuery(sql);
            List<DataRow> entityRows = table.getEntityRows();
            return entityRows;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }



    @Override
    public List<DataRow> getUserManageList() {

        return null;
    }

}
